﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace GeneticAlgorithm
{
    public class SimulatedConfiguration : Configuration
    {
        private readonly Dictionary<string, double> _scores;

        public SimulatedConfiguration(string name) : base(name)
        {
            _scores = new Dictionary<string, double>();
        }

        public void AddScore(string scoreName, double scoareValue)
        {
            _scores.Add(scoreName, scoareValue);
        }

        public double GetScore(string scoreName)
        {
            return _scores[scoreName];
        }

        public Dictionary<string, double> GetScores()
        {
            return _scores;
        }

        public void ChangeScore(string scoreName, double scoareValue)
        {
            _scores[scoreName] = scoareValue;
        }
    }
}